package com.zzxy.spring2.dao.impl;

import com.zzxy.spring2.dao.IAccountDao;
import com.zzxy.spring2.test.JdbcTemplate;
public class AccountDaoImpl implements IAccountDao {
    @Override
    public void out(String outer, int money) {
    this.getJdbcTemplate().update("update account set money = money - ? where username = ?", String.valueOf(money),outer);
    }

    private JdbcTemplate getJdbcTemplate() {
        return null;
    }

    @Override
    public void in(String inner, int money) {
        this.getJdbcTemplate().update("update account set money = money + ? where username = ?", String.valueOf(money),inner);
    }
}
